<?php

namespace Sisesporte;

return array(
    'router' => array(
        'routes' => array(
            'sisesporte-home' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/',
                    'defaults' => array(
                        'controller' => 'index',
                        'action' => 'index',
                    ),
                ),
            ),
            'sisesporte-site' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/aluno-new[/:action][/page/:page][/:id]',
                    'defaults' => array(
                        'controller' => 'aluno-new',
                        'action' => 'index',
                    ),
                ),
            ),
            'sisesporte-admin-interna' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/admin/[:controller[/:action]][/:id]',
                    'constraints' => array(
                        'id' => '[0-9]+'
                    )
                ),
            ),
            'sisesporte-admin' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/admin/[:controller[/:action][/page/:page]]',
                    'defaults' => array(
                        'action' => 'index',
                        'page' => 1
                    ),
                ),
            ),
            'sisesporte-admin-auth' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/admin/',
                    'defaults' => array(
                        'action' => 'index',
                        'controller' => 'sisesporte-admin/auth'
                    ),
                ),
            ),
            'sisesporte-admin-auth-forgot' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/admin/auth/esqueci-senha',
                    'defaults' => array(
                        'action' => 'esqueci-senha',
                        'controller' => 'sisesporte-admin/auth'
                    ),
                ),
            ),
            'sisesporte-admin-logout' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/admin/auth/logout',
                    'defaults' => array(
                        'action' => 'logout',
                        'controller' => 'sisesporte-admin/auth'
                    ),
                ),
            ),
        ),
    ),
    'controllers' => array(
        'invokables' => array(
            'index' => 'Sisesporte\Controller\IndexController',
            'aluno-new' => 'Sisesporte\Controller\AlunoController',
            'categorias' => 'SisesporteAdmin\Controller\CategoriasController',
            'livros' => 'SisesporteAdmin\Controller\LivrosController',
            'users' => 'SisesporteAdmin\Controller\UsersController',
            'sisesporte-admin/auth' => 'SisesporteAdmin\Controller\AuthController',
            'tipo-telefone' => 'SisesporteAdmin\Controller\TipoTelefoneController',
            'aluno' => 'SisesporteAdmin\Controller\AlunoController',
            'modalidade' => 'SisesporteAdmin\Controller\ModalidadeController',
            'profissao' => 'SisesporteAdmin\Controller\ProfissaoController',
            'servidor' => 'SisesporteAdmin\Controller\ServidorController',
            'instituicao-ensino' => 'SisesporteAdmin\Controller\InstituicaoEnsinoController',
            'sorteio' => 'SisesporteAdmin\Controller\SorteioController',
            'instituicao-ensino' => 'SisesporteAdmin\Controller\InstituicaoEnsinoController',
            'horario-funcionamento' => 'SisesporteAdmin\Controller\HorarioFuncionamentoController',
            'turma' => 'SisesporteAdmin\Controller\TurmaController',
            'modalidade-professor' => 'SisesporteAdmin\Controller\ModalidadeProfessorController',
            'matricula-aluno' => 'SisesporteAdmin\Controller\MatriculaAlunoController',
            'resultado-teste' => 'SisesporteAdmin\Controller\ResultadoTesteController',
            'professor' => 'SisesporteAdmin\Controller\ProfessorController',
            'pre-matricula' => 'SisesporteAdmin\Controller\PreMatriculaController',
            'estagiario' => 'SisesporteAdmin\Controller\EstagiarioController',
            'comissionado' => 'SisesporteAdmin\Controller\ComissionadoController',
            'sorteio' => 'SisesporteAdmin\Controller\SorteioController',
            'financeiro' => 'SisesporteAdmin\Controller\FinanceiroController',
            'vagas-modalidade' => 'SisesporteAdmin\Controller\VagasModalidadeController',
            'turma-ano' => 'SisesporteAdmin\Controller\TurmaAnoController',
            'vagas-turma' => 'SisesporteAdmin\Controller\VagasTurmaController'
            
        ),
    ),
    'module_layouts' => array(
        'Sisesporte' => 'layout/layout',
        'SisesporteAdmin' => 'layout/layout-admin'
    ),
    'view_manager' => array(
        'display_not_found_reason' => true,
        'display_exceptions' => true,
        'doctype' => 'HTML5',
        'not_found_template' => 'error/404',
        'exception_template' => 'error/index',
        'template_map' => array(
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
            'layout/menu-lateral' => __DIR__ . '/../view/layout/menu-lateral.phtml',
            'layout/menu-superior' => __DIR__ . '/../view/layout/menu-superior.phtml',
            'layout/bread-crumb' => __DIR__ . '/../view/layout/bread-crumb.phtml',
            'layout/modal' => __DIR__ . '/../view/layout/modal.phtml',
            'sisesporte/index/index' => __DIR__ . '/../view/sisesporte/index/index.phtml',
            'error/404' => __DIR__ . '/../view/error/404.phtml',
            'error/index' => __DIR__ . '/../view/error/index.phtml',
        ),
        'template_path_stack' => array(
            __DIR__ . '/../view',
        ),
    ),
    'service_manager' => array(
        'factories' => array(
            'translator' => 'Zend\I18n\Translator\TranslatorServiceFactory',
//            'navigation' => 'Zend\Navigation\Service\DefaultNavigationFactory',
        ),
    ),
    'translator' => array(
        'locale' => 'en_US',
        'translation_patterns' => array(
            array(
                'type' => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern' => '%s.mo',
            ),
        ),
    ),
    'doctrine' => array(
        'driver' => array(
            __NAMESPACE__ . '_driver' => array(
                'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
                'cache' => 'array',
                'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity')
            ),
            'orm_default' => array(
                'drivers' => array(
                    __NAMESPACE__ . '\Entity' => __NAMESPACE__ . '_driver'
                ),
            ),
        ),
    )
//    'config_smtp' => array(
//        "nameDefault" => "SisEsporte",
//        "emailDefault" => "jairforo@gmail.com",
//        "name" => "gmail",
//        "host" => "smtp.gmail.com",
//        "port" => 587,
//        "connection_class" => "login",
//        "username" => "jairforo@gmail.com",
//        "password" => "",
//        "ssl" => "tls"
//    )
);